package com.ayz.gateway.center.infrastructure.nginx;

/**
 * @ClassName LoadBalanceRule
 * @Description TODO:Nginx负载均衡的枚举类
 * @Author 快乐的星球
 * @Date 2023/6/12 16:26
 * @Version 1.0
 **/
public enum LoadBalanceRule {
    LEAST_CONNECTION("least_conn"),//最小连接数
    DEFAULT(""),//默认方式轮询
    IP_HASH("ip_hash")
    ;

    private String value;

    LoadBalanceRule(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
